home *** CD-ROM | disk | FTP | other *** search
- "----------------------------------------------------------------------"
- " TimerDevice Class is derived from abstract Device Class. "
- ""
- " WARNING: You should know what you're doing to the Amiga OS before "
- " messing with this Class, or any other System Class! "
- " ---------------------------------------------------------------------"
-
- Class TimerDevice :Device
- ! tname seconds micros timerType !
- [
- stop
- <primitive 228 2 tname> "Kill Timer (you still have to close it)."
- |
- startWithSecs: s withMicros: m
- <primitive 228 3 tname s m>
- |
- delaySeconds: s micros: m
- <primitive 228 4 tname s m>
- |
- test
- ^ <primitive 228 5 tname>
- |
- setTimerType: newType
- timerType <- newType
- |
- getTimerType
- ^ timerType
- |
- getSeconds
- ^ <primitive 228 6 tname>
- |
- getMicros
- ^ <primitive 228 7 tname>
- |
- setSeconds: s micros: m
- seconds <- s.
- micros <- m.
- ^ <primitive 228 8 tname s m>
- |
- compare: s micros: m toSeconds: s2 micros: m2
- ^ <primitive 228 9 tname s m s2 m2>
- |
- getEClockHigh
- ^ <primitive 228 10 tname>
- |
- getEClockLow
- ^ <primitive 228 11 tname>
- |
- new: newTimerName
- tname <- newTimerName.
- ^ self
- |
- openTimerType
- <primitive 228 1 tname timerType seconds micros> "Setup Timer."
- |
- close
- <primitive 228 0 tname> "Close the Timer."
- ]
-